package com.jx.driving.transmission;

import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.BcdAnnotation;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;

/**
 * 命令上报学时记录
 * 
 * @author shenliuyang
 *
 *         2016年8月15日上午10:48:52
 */
@TerminalAnnotation
public class Terminal0x8205Transmission extends TimeTerminalTransmissionMessage {
    @ByteAnnotation(order = 1)
    private short pattern;// 查询方式1：按时间上传；2：按条数上传
    @BcdAnnotation(value = 6, order = 2)
    private String startTime;// 起始时间YYMMDDhhmmss
    @BcdAnnotation(value = 6, order = 3)
    private String endTime;// 终止时间 YYMMDDhhmmss
    @WordAnnotation(order = 4)
    private int totalCount;// 查询条数

    public short getPattern() {
	return pattern;
    }

    public void setPattern(short pattern) {
	this.pattern = pattern;
    }

    public String getStartTime() {
	return startTime;
    }

    public void setStartTime(String startTime) {
	this.startTime = startTime;
    }

    public String getEndTime() {
	return endTime;
    }

    public void setEndTime(String endTime) {
	this.endTime = endTime;
    }

    public int getTotalCount() {
	return totalCount;
    }

    public void setTotalCount(int totalCount) {
	this.totalCount = totalCount;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0x8205Transmission [pattern=").append(pattern).append(", startTime=").append(startTime).append(", endTime=").append(endTime).append(", totalCount=").append(totalCount).append("]");
	return builder.toString();
    }

}
